﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace B.S.Basic.Infratrucate.Migrations
{
    public partial class log1 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Mguans",
                columns: table => new
                {
                    GId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    GName = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Mguans", x => x.GId);
                });

            migrationBuilder.CreateTable(
                name: "MyExams",
                columns: table => new
                {
                    MId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    MNum = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    MName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Sex = table.Column<bool>(type: "bit", nullable: false),
                    MNick = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    MPhone = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    MEmail = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    MTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Mzu = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Mzhi = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Mzhu = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    MNumber = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Mwei = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    RTime = table.Column<DateTime>(type: "datetime2", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_MyExams", x => x.MId);
                });

            migrationBuilder.CreateTable(
                name: "Mzhi4s",
                columns: table => new
                {
                    HId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    HName = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Mzhi4s", x => x.HId);
                });

            migrationBuilder.CreateTable(
                name: "Mzus",
                columns: table => new
                {
                    ZId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    ZName = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Mzus", x => x.ZId);
                });

            migrationBuilder.CreateTable(
                name: "Users",
                columns: table => new
                {
                    UId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    UName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    UPass = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Nickname = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Users", x => x.UId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Mguans");

            migrationBuilder.DropTable(
                name: "MyExams");

            migrationBuilder.DropTable(
                name: "Mzhi4s");

            migrationBuilder.DropTable(
                name: "Mzus");

            migrationBuilder.DropTable(
                name: "Users");
        }
    }
}
